﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace iChip.Hotspots.Models
{
    
    public class Splash
    {
        public Splash()
        {

        }
        public int Splash_Id { get; set; }
        public string Hotspot_Mac { get; set; }
        public string Splash_Name { get; set; }
        public string Splash_UrlRedirect { get; set; }
        public int User_Type { get; set; }
        public DateTime Splash_StartTime { get; set; }
        public DateTime Splash_EndTime { get; set; }
        public string Splash_Content { get; set; }
        public bool Splash_IsDefault { get; set; }
    }

    public class SplashModel
    {
        public SplashModel()
        {
            User_TypeList = new List<SelectListItem>();

        }
        public int Counter { get; set; }
        public int Splash_Id { get; set; }
        public int Hotspot_Id { get; set; }
        public string Hotspot_Mac { get; set; }
        [Required]
        [Display(Name = "Splash Name")]
        public string Splash_Name { get; set; }
        [Required]
        [Display(Name = "Splash UrlRedirect")]
        public string Splash_UrlRedirect { get; set; }
        public int User_Type { get; set; }
        [Required]
        [Display(Name = "Splash StartTime")]
        public DateTime Splash_StartTime { get; set; }
        [Required]
        [Display(Name = "Splash EndTime")]
        public DateTime Splash_EndTime { get; set; }
        [Required]
        [Display(Name = "Splash Content")]
        public string Splash_Content { get; set; }
        public bool Splash_IsDefault { get; set; }
        public IEnumerable<SelectListItem> User_TypeList { get; set; }   
    }
}